REM Remember, if running this on Win10, you'll probably need to right click on this batch file, and select "Run as Administrator" REM The %~dp0 variable will expand to the drive letter and path of that batch file. So if the bat is run within the same folder as LaserGuide.dll, this will always work... regsvr32 /u "%~dp0LaserGuide.dll"